// @ts-ignore
/* eslint-disable */

/**
 * 该文件为 @umijs/openapi 插件自动生成，请勿随意修改。如需修改请通过配置 openapi.config.ts 进行定制化。
 * */

import { request, type RequestOptions } from '@/utils/request';

export async function userPage (
  params: API.UserPageParams,
  options?: RequestOptions,
) {
  return request<API.ClassesItem>('/user/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}

// create
export async function create (
  params: API.UserItem,
  options?: RequestOptions,
) {
  return request<API.ClassesItem>('/user/create', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
   ...(options || {}),
  });
}

// checkStat
export async function checkStat (
  params: API.CheckItem,
  options?: RequestOptions,
) {
  return request<API.ClassesItem>('/user/checkStat', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
  ...(options || {}),
  });
}

// userUpdate
export async function update (
  params: API.UserItem,
  options?: RequestOptions,
) {
  return request<API.ClassesItem>('/user/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
 ...(options || {}),
  });
}
